package com.ccp.dev.workflow.event;

import com.ccp.dev.workflow.service.bpm.cmd.CallActivityRejectCmd;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * ClassDescribe:
 * 子流程驳回时定义的事件。
 * {@linkplain CallActivityRejectCmd 子流程驳回命令。}
 * @author :wangcheng
 * Date: 2019-11-13
 */
public class CallActivityBackEvent extends ApplicationEvent {

    private static final long serialVersionUID = -5287673255792592338L;

    private String taskId = "";

    /**
     * Create a new ApplicationEvent.
     *
     * @param list the object on which the event initially occurred (never {@code null})
     */
    public CallActivityBackEvent(List<TaskEntity> list) {
        super(list);
    }

    public void setCurTaskId(String taskId){
        this.taskId=taskId;
    }

    public String getCurTaskId(){
        return this.taskId;
    }

}
